package com.usdt.system.domain.resp;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Tag(name = "到访登记VO")
public class VisitRegisterListRespVO {


	@Schema(title = "到访id")
    private Integer id;
	
	@Schema(title = "姓名")
    private String name;
	
	@Schema(title = "性别")
    private String sex;
	
	@Schema(title = "年龄")
    private Integer age;
	
	@Schema(title = "电话")
    private String phoneNumber;
	
	@Schema(title = "业务员姓名")
	private String salespersonName;
	
	
	@Schema(title = "客户渠道(查主数据)")
    private String clueSource;

	@Schema(title = "客户状态")
	private String customerStatus;
	
	@Schema(title = "到访次数")
    private Integer visitNum;

	@Schema(title = "最后到访时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastVisitTime;
	
	@Schema(title = "上次回访时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastCallbackTime;
	
	@Schema(title = "是否预约")
    private Boolean isReservation;

}
